package com.sevenGroup.pawnshop.controller.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel("传入的商店对象")
public class StoreForm {

    @Min(value = 0)
    @ApiModelProperty("商店id")
    private Integer storeId;
    @NotNull
    @Length(min = 1)
    @ApiModelProperty("商店名字")
    private String storeName;
    @NotNull
    @Length(min = 1)
    @ApiModelProperty("商店地址")
    private String storeAddress;
    @NotNull
    @Length(min = 2,max = 20)
    @ApiModelProperty("商店联系人")
    private String storeContact;
    @Length(min = 10,max = 12)
    @NotNull
    @ApiModelProperty("联系人电话")
    private String storeTel;
    @NotNull
    @Length(min = 1)
    @ApiModelProperty("商店状态")
    private String storeState;
    @ApiModelProperty("仓库id集合")
    private List<Integer> list;

}
